package com.gxar.quick.ar.server.base.model.works.vo.response;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.gxar.quick.ar.server.base.model.works.vo.DraftInfoWorksVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author linsy
 * @version 1.0
 * @created 2023/11/3 16:04
 */
@Data
@ApiModel("创建预览响应模型")
public class WorksPreviewCreateResponse {

    @ApiModelProperty("作品预览id")
    @JSONField(name = "work_preview_id")
    @JsonProperty("work_preview_id")
    private String workPreviewId;

    @ApiModelProperty("用户id")
    @JSONField(name = "user_id")
    @JsonProperty("user_id")
    private String userId;

    @ApiModelProperty("作品模板")
    @JSONField(name = "template_id")
    @JsonProperty("template_id")
    private String templateId;

    @ApiModelProperty("作品名称")
    @JSONField(name = "name")
    @JsonProperty("name")
    private String name;

    @ApiModelProperty("识别图")
    @JSONField(name = "identify")
    @JsonProperty("identify")
    @NotBlank(message = "请上传识别图")
    private String identify;

    @ApiModelProperty("制作方式，0-简易制作，1-进阶制作")
    @JSONField(name = "production_method")
    @JsonProperty("production_method")
    private Integer productionMethod;

    @ApiModelProperty("配置来源编辑器")
    @JSONField(name = "editor")
    @JsonProperty("editor")
    private String editor;

    @ApiModelProperty("内容信息")
    @JSONField(name = "shows")
    @JsonProperty("shows")
    @NotBlank(message = "请上传作品内容")
    private String content;

}
